package com.team.runsfast.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author fxy
 * @date 2022/9/24
 */
@Data
@NoArgsConstructor
@TableName("t_store")
public class Store {
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 商铺是否下架
     */
    private Integer flag;
    /**
     * 商铺名称
     */
    private String title;
    /**
     * 商铺图片
     */
    private String imgurl;
    /**
     * 商铺地址
     */
    private String adress;
    /**
     * 商铺信息
     */
    private String info;
    /**
     * 商铺的评价
     */
    private Double comments;

    private String phone;
    /**
     * 邮费
     */
    private Double post;
    private Date ctime;

    public Store(String title, String adress, String info, String phone, Double post) {
        this.title = title;
        this.adress = adress;
        this.info = info;
        this.phone = phone;
        this.post = post;
        this.flag=1;
        this.ctime = new Date();
        this.comments=0.0;
    }
}
